﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace FractionServiceLibary
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IFraction1" in both code and config file together.
    [ServiceContract]
    public interface IFractionArihmeticService
    {
        [OperationContract]
        Fraction Add(Fraction fra1, Fraction fra2);

        [OperationContract]
        Fraction Subtract(Fraction fra1, Fraction fra2);

        [OperationContract]
        Fraction Multiply(Fraction fra1, Fraction fra2);

        [OperationContract]
        Fraction Division(Fraction fra1, Fraction fra2);

        [OperationContract]
        int GDivisor(int a, int b);

        [OperationContract]
        Fraction Shortcut(Fraction fra);
    }
}
